package com.imooc.ioc.service;

import com.imooc.ioc.dao.InjectionDAO;

public class InjectionServiceImpl implements InjectionService  {

	private InjectionDAO injectionDAO;
	
	public void setInjectionDAO(InjectionDAO injectionDAO) {
		this.injectionDAO = injectionDAO;
		System.out.println("赋值了");
	}

	@Override
	public void save(String arg) {
		System.out.println("Serivce接受"+arg);
		arg = arg + ":"+ this.hashCode();
		injectionDAO.save(arg);
	}

}
